#pragma once
#include "KeyBoard.h"
#include "InputDefine.h"
#include "D3D9InputDefine.h"
#include "dinput.h"

using namespace DreamEngine;

namespace DreamEngineD3D9Input
{

class _EngineD3D9InputExport CD3D9KeyBoard : public CKeyBoard
{
public:
	CD3D9KeyBoard(HWINDOW hWnd);
	virtual ~CD3D9KeyBoard(void);

public:

		virtual Error	Initialize(void);
		virtual void	ShutDown(void);
		virtual Error	SetExclusiveMode(m_uint8 exclusiveMode);

protected:

		virtual	bool	_GetIsKeyDown(char* pKeyBorad, KEY key);
		virtual Error	_UpdateKeyBoardState(void);
		virtual Error   _OnLostDevice(void);

protected:

		LPDIRECTINPUTDEVICE8	m_pKeyBoard;
};

}


